<div class="pager">
    共${page.totalElements}条
    当前第<span>${page.number+1}/${page.totalPages}</span>页
    <a href="${url}&number=0">第一页</a>
	<#if (page.hasPrevious())>
		<a href="${url}&number=${page.number-1}">上一页</a>
    <#elseif (page.hasNext())>
		<a href="${url}&number=${page.number+1}">下一页</a>
    </#if>
    <a href="${url}&number=${page.totalPages-1}">最后一页</a>
    转到<input size="2" id="pageInput" value=""/>页
    <button onclick="javascript:goPage('${url}','${page.totalPages}')">GO</button>
</div>
		</th>
	</tr>
</table>
</body>
<script type="text/javascript">
    function goPage(url,pages){
        var pageInput = $("#pageInput").val();
        if (!(/(^[1-9]\d*$)/.test(pageInput))) {
            alert("请输入一个正确的页数");
            return ;
        }
        if(parseInt(pageInput-1)>pages){
            pageInput = pages;
        }

        $("#number").val(pageInput-1);
        document.forms[0].submit();
    }
</script>
</html>